\name{Raster2Sp}
\alias{Raster2Sp}
%- Also NEED an '\alias' for EACH other topic documented here.
\encoding{UTF-8}
\title{
Converts a raster dataset to a new sp SpatialPixelsDataFrame.
}
\description{
Converts a raster dataset to a new sp SpatialPixelsDataFrame.
}
\usage{
Raster2Sp(dataset)
}
%- maybe also 'usage' for other objects documented here.
\arguments{
  \item{dataset}{
  栅格数据集对象
}
}
\details{
%%  ~~ If necessary, more details than the description above ~~
}
\value{
成功返回一个 \code{\link{SpatialPixelsDataFrame-class}} 对象，否则返回 NULL
}
\references{
%% ~put references to the literature/web site here ~
}
\author{
%%  ~~who you are~~
}
\note{
需要 sp
}

%% ~Make other sections like Warning with \section{Warning }{....} ~

\seealso{
%% ~~objects to See Also as \code{\link{help}}, ~~~
}
\examples{
require(sp)
server <- system.file("/sampledata/ChangChun.udb", package="RSuperMap")
ds <- OpenDatasource(server, alias = "test")
dt <- GetDataset(ds, "Grid")
sp.df <- Raster2Sp(dt)
CloseDatasource(ds)

}

% Add one or more standard keywords, see file 'KEYWORDS' in the
% R documentation directory.
\keyword{ supermap }% use one of  RShowDoc("KEYWORDS")

